# Set OCamlMakefile to use
export OCAMLMAKEFILE = ../OCamlMakefile

export STUBS_C = octi_rawb_stubs.c
export RAWB = octi_rawb.mli octi_rawb.ml
export CLIBS = blas 
export CFLAGS = -g 

define PROJ_rawb_lib
  SOURCES = ${STUBS_C} ${RAWB}
  RESULT = rawb_lib
endef
export PROJ_rawb_lib

define PROJ_rawb_test
  SOURCES = rawb_test.ml ${STUBS_C} ${RAWB}
  RESULT = rawb_test
endef
export PROJ_rawb_test

ifndef SUBPROJS
  export SUBPROJS = rawb_lib
endif
 
# Default target to use
all:	top

# Catch-all target will be applied to all subprojects automatically
%:
	@$(MAKE) -f $(OCAMLMAKEFILE) subprojs SUBTARGET=$@
